<!DOCTYPE html>
<html>
<head>
<title>楼盘信息表</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="../../../css/bootstrap.min.css">
<link rel="stylesheet" href="../../../css/font-awesome.min.css">
<link rel="stylesheet" href="../../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
<link rel="stylesheet" href="../../../plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" href="../../../css/main.css">
<script src="../../../libs/jquery.min.js"></script>
<script src="../../../plugins/layer/layer.js"></script>
<script src="../../../libs/bootstrap.min.js"></script>
<script src="../../../libs/vue.min.js"></script>
<script src="../../../plugins/jqgrid/grid.locale-cn.js"></script>
<script src="../../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
<script src="../../../plugins/ztree/jquery.ztree.all.min.js"></script>
<script src="../../../js/common.js"></script>
<style>
	.row {
		border: none;
	    margin: 0;
    	padding: 0px 2px 0px 2px;
    }
</style>
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn row">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.name" placeholder="楼盘名称/楼盘地址">
			</div>
			<div class="form-group col-sm-2">
				<select class="form-control" v-model="q.premisesType" >
			    	<option value="">请选择物业类型</option>
			    	<option v-for="option in premisesTypeList" v-bind:value="option.id">
					    {{ option.name}}
					</option>
			    </select>
			</div>
			   <div class="col-sm-1" style="padding-right: 0px; width: 168px;">
                    <select class="form-control" v-model="q.provinceSelected" @change="changeProvice($event)">
                        <option value="">省</option>
                        <option v-for="option in provinceList" :value="option.regionId"
                                v-text="option.regionName"></option>
                    </select>
                </div>
                <div class="col-sm-1" style="padding-right: 0px;width: 126px;">
                    <select class="form-control" v-model="q.citySelected" @change="changeCity($event)">
                        <option value="">市</option>
                        <option v-for="option in cityList" :value="option.regionId" v-text="option.regionName"></option>
                    </select>
                </div>
                <div class="col-sm-1" style="padding-right: 0px;width: 126px;">
                    <select class="form-control" v-model="q.countrySelected">
                        <option value="">区</option>
                        <option v-for="option in countryList" :value="option.regionId"
                                v-text="option.regionName"></option>
                    </select>
                </div>
			<div class="form-group col-sm-1">
				<a class="btn btn-default" @click="query" style="margin-left: 15px"><i class="fa fa-search"></i>&nbsp;查询</a><br>
			</div>
			
			
		</div>
		<div class="row">
			<div class="form-group col-sm-6">
<!-- 				<a v-if="hasPermission('premises:premisesinfo:save')" class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a> -->
<!-- 				<a v-if="hasPermission('premises:premisesinfo:update')" class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a> -->
				<a  class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
				<a  class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
<!-- 				<a v-if="hasPermission('premises:premisesinfo:delete')" class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a> -->
			</div>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">楼盘名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="premisesInfo.name" placeholder="楼盘名称"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">省</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="premisesInfo.province" placeholder="省"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">市</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="premisesInfo.city" placeholder="市"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">区</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="premisesInfo.county" placeholder="区"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">商圈</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="premisesInfo.commercialArea" placeholder="商圈"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">地址</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="premisesInfo.address" placeholder="地址"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">建筑面积</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="premisesInfo.proportion" placeholder="建筑面积"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">容积率</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="premisesInfo.grossPlotRatio" placeholder="容积率"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">绿化率</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="premisesInfo.greenCoverage" placeholder="绿化率"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">楼栋数</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="premisesInfo.buildingCount" placeholder="楼栋数"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">得房率</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="premisesInfo.efficiency" placeholder="得房率"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">开发商</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="premisesInfo.developer" placeholder="开发商"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">物业管理公司</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="premisesInfo.estate" placeholder="物业管理公司"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">楼盘简介</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="premisesInfo.introduce" placeholder="楼盘简介"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">社区类型</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="premisesInfo.communityType" placeholder="社区类型"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">建筑类型</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="premisesInfo.buildingType" placeholder="建筑类型"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">物业类型</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="premisesInfo.premisesType" placeholder="物业类型"/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
</div>

<script src="../../../js/modules/permanent/premises/premisesinfoList.js"></script>
</body>
</html>